package test;


public class ARunnable implements Runnable {


	public static void main( String [] args ) throws Exception {

		Runnable a = new ARunnable();
		Thread t = new Thread( a );

		t.start();

	}

	public void run()  {

		Thread t = Thread.currentThread();
		int i = 0;
		int sec = 3;
		while( true ) {
			try {
				System.out.println( i );
				i ++;
				t.sleep( sec*1000 );
			} catch (Exception e) {
				// TODO: handle exception
			}
		}
	}

}
